package org.example.service.impl;

import lombok.RequiredArgsConstructor;
import org.example.entity.Data;
import org.example.mapper.DataMapper;
import org.example.service.DataService;
import org.example.service.UserService;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class DataServiceImpl implements DataService {

    final DataMapper dataMapper;

    @Override
    public Data saveData(Data data) {
        dataMapper.insert(data);
        return data;
    }
}
